package com.choosefine.it.basedata.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.choosefine.it.base.BaseService;
import com.choosefine.it.basedata.dao.SettleTypeMapper;
import com.choosefine.it.basedata.model.SettleType;
import com.github.pagehelper.PageInfo;
@Service("settleTypeService")
public class SettleTypeService{
	@Autowired
	private SettleTypeMapper settleTypeMapper;

	public List<SettleType> selectAll() {
		return settleTypeMapper.slecetSettleTypeAll();
	}
	public int updateSettleType(Integer id){
		return settleTypeMapper.deleteSettleType(id);
	}
	public SettleType findByPrimaryKey(Integer id) {
		return settleTypeMapper.selectSettleTypeById(id);
	}
	public int insert(SettleType settleType) {
		return settleTypeMapper.addSettleType(settleType);
	}
	public int updateSettleType(SettleType settleType){
		return settleTypeMapper.updateSettle(settleType);
	}
	
}
